#pragma once

#define OPER_TREE_CHECK_ICON	0
#define OPER_TREE_UNCHECK_ICON	1
#define OPER_TREE_ITEM_ICON		4

// COperatorTreeCtrl

class COperatorTreeCtrl : public CTreeCtrl
{
	DECLARE_DYNAMIC(COperatorTreeCtrl)

public:
	COperatorTreeCtrl();
	virtual ~COperatorTreeCtrl();

protected:
	CImageList m_il;

public:
	void		AttachBitmap();
	void		Populate(ck::EnumOperator* pOperators);
	z_uint32	GetOperatorCode(HTREEITEM hItem);

protected:
	DECLARE_MESSAGE_MAP()
public:
	afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct);
	afx_msg void OnSize(UINT nType, int cx, int cy);
	//afx_msg void OnNMClick(NMHDR *pNMHDR, LRESULT *pResult);
};


